﻿using System;

namespace Moqikaka.Model
{
    /// <summary>
    /// 加入回归活动
    /// </summary>
    public class JoinOldPlayerReturn
    {

        #region 构造函数
        /// <summary>
        /// 构造函数
        /// </summary>
        public JoinOldPlayerReturn() 
        { 
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dr">数据行</param>
        public JoinOldPlayerReturn(System.Data.DataRow dr)
        {
            this.PartnerId = Convert.ToInt32(dr[CommonPropertyName.PartnerId]);
            this.UserId = dr[CommonPropertyName.UserId].ToString();
            this.LinkLastLoginTime = Convert.ToDateTime(dr[CommonPropertyName.LinkLastLoginTime]);
            this.IsUse = Convert.ToBoolean(dr[CommonPropertyName.IsUse]);

        }
        #endregion

        /// <summary>
        /// 合作商Id
        /// </summary>
        public Int32 PartnerId { get; private set; }

        /// <summary>
        /// 平台用户Id
        /// </summary>
        public String UserId { get; private set; }


        /// <summary>
        /// 关联的最后一次登录时间
        /// </summary>
        public DateTime LinkLastLoginTime { get; set; }

        
        /// <summary>
        /// 是否已使用
        /// </summary>
        public bool IsUse { get; set; }
        

    }
}
